package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.design.DesignPatternInstance;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDesignPatternInstanceService {
	public boolean addDesignPatternInstance(DesignPatternInstance dpi);

	public DesignPatternInstance updateDesignPatternInstance(DesignPatternInstance dpi);

	public DesignPatternInstance getDesignPatternInstanceById(long id);

	public PageBean getPageBean(int pageNum) throws DBException;
	
	public List<DesignPatternInstance> getDesignPatternInstanceList();
}
